<template>
    <div class="home">
        111111111111
        <button class="btn btn-sm" @click="loadData">click</button>
        <div class="show-data"></div>
        <img alt="Vue logo" class="bz-rotation-infinity" src="../assets/logo.png">
        <HelloWorld msg="Welcome to Your Vue.js App"/>
    </div>
</template>

<script>
    // @ is an alias to /src
    import HelloWorld from '@/components/HelloWorld.vue'
    import {resource} from "../config/resources";

    export default {
        name: 'Home',
        components: {
            HelloWorld
        },
        methods:{
            loadData(){
                this.$http.get(resource.index).then(response => {
                    console.log(response.data);
                });
           },
        },
        mounted() {
        }
    }
</script>
